<table class="table_style" cellpadding="0" cellspacing="0" border="0" width="100%" id="id_table_cases" >
	<thead>
		<tr>
			<th align="left" class="sortcol sortdesc" >Plan name</th>
			<th align="left" class="sortcol">Run name</th>
			<th align="left" class="sortcol" width="40">Idle</th>
			<th align="left" class="sortcol" width="70">Running</th>
			<th align="left" class="sortcol" width="60">Paused</th>
			<th align="left" class="sortcol" width="50">Passed</th>
			<th align="left" class="sortcol" width="50">Failed</th>
			<th align="left" class="sortcol" width="60">Blocked</th>
			<th align="left" class="sortcol" width="50">Error</th>
			<th align="left" class="sortcol" width="60">Waived</th>
			<th align="left" class="sortcol" width="50">Total</th>
		</tr>
	</thead>
	<tbody>
	{% for plan, run, status_count in status_matrix %}
		{% if plan or run %}
		<tr>
			{% ifnotequal plan None %}
			<td class="group_by" valign="middle" rowspan="{{ plan.1 }}" data-plan-id="{{ plan.0.plan_id }}">
			  <a href="{% url 'test_plan_url_short' plan.0.pk %}">TP-{{ plan.0.pk }}: {{ plan.0.name }}</a>
			</td>
			{% endifnotequal %}
			<td valign="top"><a href="{% url 'testruns-get' run.pk %}">TR-{{ run.pk }}: {{ run.summary }}</a></td>
			<td valign="top">{{ status_count.IDLE|default:'' }}</td>
			<td valign="top">{{ status_count.RUNNING|default:'' }}</td>
			<td valign="top">{{ status_count.PAUSED|default:'' }}</td>
			<td valign="top">{{ status_count.PASSED|default:'' }}</td>
			<td valign="top">{{ status_count.FAILED|default:'' }}</td>
			<td valign="top">{{ status_count.BLOCKED|default:'' }}</td>
			<td valign="top">{{ status_count.ERROR|default:'' }}</td>
			<td valign="top">{{ status_count.WAIVED|default:'' }}</td>
			<td valign="top">{{ status_count.TOTAL|default:'' }}</td>
		</tr>
		{% else %}
		<tr>
			<td colspan="2" align="right" style="padding-right:10px;">Total</td>
			<td valign="top">{{ status_count.IDLE|default:'' }}</td>
			<td valign="top">{{ status_count.RUNNING|default:'' }}</td>
			<td valign="top">{{ status_count.PAUSED|default:'' }}</td>
			<td valign="top">{{ status_count.PASSED|default:'' }}</td>
			<td valign="top">{{ status_count.FAILED|default:'' }}</td>
			<td valign="top">{{ status_count.BLOCKED|default:'' }}</td>
			<td valign="top">{{ status_count.ERROR|default:'' }}</td>
			<td valign="top">{{ status_count.WAIVED|default:'' }}</td>
			<td valign="top">{{ status_count.TOTAL|default:'' }}</td>
		</tr>
		{% endif %}
	{% endfor %}
	</tbody>
</table>
